Constant Expected "{" before ")" token

Posted by Thijs on Stack Overflow See other posts from Stack Overflow or by Thijs
Published on 2010-12-31T15:52:01Z Indexed on 2010/12/31 15:54 UTC
Read the original article Hit count: 259

Filed under:
|
|

I've got a little problem. I am applying some changes to an iOS program i wrote, but I've struck a problem. I constantly get a "Expected '{' before ')' token" warning, but my coding skills aren't good enough to find the problem. A little help would greatly be appreciated.

#import "Search.h"

#import "RootViewController.h"

//button
- (IBAction)buttonPressed)sender{
    RootViewController *newview = [[RootViewController alloc] initWithNibName:@"RootViewController" bundle:nil];
    [UIView beginAnimations:nil context:NULL]; 
    [UIView setAnimationDuration:0.5]; 
    [UIView setAnimationTransition:UIViewAnimationTransitionFl ipFromRight forView:self.view cache:YES]; 
    [self.view addSubview:newview.view]; 
    [UIView commitAnimations];

@implementation Search

@end

© Stack Overflow or respective owner

Related posts about iphone

Related posts about error